package com.remon.quartz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 触发器表达式
 *
 * @author remon
 * @create 2018-09-08 23:39
 **/
@Entity
@Table(name = "QRTZ_CRON_TRIGGERS")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QrtzCronTriggers {

    /**
     * 设计器名称
     */
    @Id
    @Column(name = "SCHED_NAME")
    private String schedName;

    /**
     * 触发器名称
     */
    @Column(name = "TRIGGER_NAME")
    private String triggerName;

    /**
     * 触发器所属组别
     */
    @Column(name = "TRIGGER_GROUP")
    private String triggerGroup;

    /**
     * cron 表达式
     */
    @Column(name = "CRON_EXPRESSION")
    private String cronExpression;

    /**
     * 时间所属时区ID
     */
    @Column(name = "TIME_ZONE_ID")
    private String timeZoneId;
}
